feat: add now-playing drawer for quick track list access - #27
Merged
Conversation
Clicking the now-playing bar's album art previously navigated the main view away from whatever was being browsed. It now slides in a 420px drawer showing the playing album's metadata and track list instead, leaving the main view untouched — this also sets up a home for future playlist queues, which won't have an albumId to navigate to. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ndings Addresses code review feedback on the now-playing drawer: - Extract AlbumHeader and TrackRow into src/lib/components/album/, shared by TrackTable and NowPlayingDrawer, instead of near-duplicated markup/CSS. - Gate the drawer's track fetch on ui.nowPlayingDrawerOpen so normal playback no longer fires a background IPC call on every track/album change, and guard against a stale fetch overwriting newer results. - Add library.findAlbumById (checks hidden albums too) so the header no longer silently disappears if the playing album has been hidden. - Add focus management to the drawer: initial focus on the close button, a Tab focus trap, and focus restored to the trigger on close. - Make the drawer mutually exclusive with the Settings/Device Sync panels. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Violates the project's minimum-font-size rule; color already de-emphasizes it against the title without needing to shrink it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
library.goToAlbum, which is now unused now that the now-playing bar no longer navigates the main view.albumId), since the drawer's open/close state is independent oflibrary's album-selection state.Test plan
npm run check— 0 errors, 0 warningsnpm run test— all passingScreencast.from.2026-07-08.09-12-26.mp4
🤖 Generated with Claude Code